﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Arch.Samples.Model;
using Arch.Samples.Mvc.Infrastructure;

namespace Arch.Samples.Mvc.Controllers
{
    public class SubCategoryController : CrudControllerBase<SubCategory>
    {
        protected override void LoadDependencies(SubCategory entity)
        {
            ViewData["GlobalCategoryId"] = SelectList(Repository.Find<GlobalCategory>(), selectedValue: entity.GlobalCategoryId, emptyValueField: "");
        }
    }
}
